Class MyA3LMessagingService
- java.lang.Object
-
- android.content.BroadcastReceiver
-
- com.amazon.A3L.messaging.A3LMessagingService
-
- com.example.SampleA3LMessagingApp.MyA3LMessagingService
-
public class MyA3LMessagingService extends A3LMessagingService
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFALLBACK_NOTIFICATION_CHANNELstatic java.lang.StringFALLBACK_NOTIFICATION_CHANNEL_LABEL
-
Constructor Summary
Constructors Constructor Description MyA3LMessagingService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcreateNotification(android.content.Context context, Notification a3lNotification)voidonMessageReceived(android.content.Context context, RemoteMessage remoteMessage)Developer implements this method to receive messages sent from their app servervoidonNewToken(android.content.Context context, java.lang.String token)Developer implements this method to receive device registration id (token) generated by messaging platform e.g ADM or FCM-
Methods inherited from class com.amazon.A3L.messaging.A3LMessagingService
onReceive
-
Methods inherited from class android.content.BroadcastReceiver
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
-
-
-
-
Field Detail
-
FALLBACK_NOTIFICATION_CHANNEL
public static final java.lang.String FALLBACK_NOTIFICATION_CHANNEL
- See Also:
- Constant Field Values
-
FALLBACK_NOTIFICATION_CHANNEL_LABEL
public static final java.lang.String FALLBACK_NOTIFICATION_CHANNEL_LABEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
onMessageReceived
public void onMessageReceived(android.content.Context context, RemoteMessage remoteMessage)Description copied from class:A3LMessagingServiceDeveloper implements this method to receive messages sent from their app server- Specified by:
onMessageReceivedin classA3LMessagingService- Parameters:
context- : Application ContextremoteMessage- : instance of RemoteMessage
-
onNewToken
public void onNewToken(android.content.Context context, java.lang.String token)Description copied from class:A3LMessagingServiceDeveloper implements this method to receive device registration id (token) generated by messaging platform e.g ADM or FCM- Specified by:
onNewTokenin classA3LMessagingService- Parameters:
context- : Application Contexttoken- : device registration id (token)
-
createNotification
public static void createNotification(android.content.Context context, Notification a3lNotification)
-
-